package com.saibo.spider.thread;

import com.saibo.spider.gather.service.ThreadSinaBlogService;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolUtil {
	public static void main(String[] args){
		  ExecutorService fixedThreadPool = Executors.newFixedThreadPool(3);
		  Thread thread = new ThreadSinaBlogService("asdasda");
		  while(true){
			  
			  fixedThreadPool.execute(thread);
			  
		  }
		  
		  
	}
}
